// preparing language file
var aLangKeys=new Array();
aLangKeys['en']=new Array();

aLangKeys['en']['username']='Usernames';
aLangKeys['en']['password']='Password';
aLangKeys['en']['forgotten_password']='Forgot your password?';
aLangKeys['en']['login']='Log in';

aLangKeys['en']['button_Send'] = 'Send';

aLangKeys['en']['ListInnovation_Info'] = 'This is a list of your recommendations.';

aLangKeys['en']['menu_navigation'] = 'Navigation';
aLangKeys['en']['menu_Create'] = 'Create recommendation';
aLangKeys['en']['menu_Show'] = 'Show recommendation';
aLangKeys['en']['menu_About'] = 'About Sales Makeover';
aLangKeys['en']['menu_Contact'] = 'Contact';
aLangKeys['en']['menu_Account'] = 'Account';
aLangKeys['en']['menu_Forgot'] = 'Forgotten information';
aLangKeys['en']['menu_Logout'] = 'Log out';

aLangKeys['en']['create_Info'] = 'To create a recommendation, we need the following informaiton. Boxes with stars are mandatory.';
aLangKeys['en']['create_Name'] = '*Customer name';
aLangKeys['en']['create_Project'] = '*Project name';
aLangKeys['en']['create_Value'] = '*Business Value';
aLangKeys['en']['create_Contact'] = '*Contact';
aLangKeys['en']['create_Role'] = '*Contacts roll';
aLangKeys['en']['create_Next'] = 'Next';

aLangKeys['en']['create_Info2'] = 'Follow these three steps to create you recommendation. Boxes with stars are mandatory.'
aLangKeys['en']['create_Ide'] = '*Recommendation / Idea';
aLangKeys['en']['create_problem'] = '*Customers problem';
aLangKeys['en']['create_Solution'] = '*Solution';
aLangKeys['en']['create_Value2'] = '*Customers value';


aLangKeys['en']['VD'] = 'CEO';
aLangKeys['en']['Ledningschef'] = 'Management manager';
aLangKeys['en']['Konsult'] = 'Consultant';
aLangKeys['en']['Projektansvarig'] = 'Project manager';
aLangKeys['en']['Tekniker'] = 'Engineer';

aLangKeys['en']['error_Name'] = 'Client can not be empty';
aLangKeys['en']['error_Projekt'] = 'Projekt can not be empty';
aLangKeys['en']['error_BusinessValue'] = 'Customers value can not be empty';
aLangKeys['en']['error_Contact'] = 'Contact can not be empty';
aLangKeys['en']['error_OwnerRole'] = 'Contact person\'s role can not be empty';

aLangKeys['en']['error_Recommendation'] = 'Recommendation / Idea can not be empty';
aLangKeys['en']['error_Problem'] = 'The customer\'s problems can not be empty';
aLangKeys['en']['error_Solution'] = 'Solution can not be empty';
aLangKeys['en']['error_CustomerValue'] = 'Value for the customer can not be empty';
aLangKeys['en']['error_NextStep'] = 'Select the next steps in the project';
aLangKeys['en']['error_TimeFrame'] = 'Select time frame';


aLangKeys['en']['create_NextStep'] = '*Next step';
aLangKeys['en']['create_NextList'] = 'Next step';
aLangKeys['en']['Kontakt med säljare'] = 'Contact the seller';
aLangKeys['en']['Avvakta'] = 'Wait';

aLangKeys['en']['create_Timetable'] = '*Timeframe';
aLangKeys['en']['create_TimeList'] = 'Timeframe';
aLangKeys['en']['Inom en månad'] = 'Within a month';
aLangKeys['en']['Snarast'] = 'As soon as possible';

aLangKeys['en']['show_Created'] = 'Created by';
aLangKeys['en']['show_On'] = 'at';
aLangKeys['en']['show_Contact'] = 'Contact';
aLangKeys['en']['show_Recommendation'] = 'Recommendation';
aLangKeys['en']['show_Problem'] = 'Problem';
aLangKeys['en']['show_Solution'] = 'Solution';
aLangKeys['en']['show_Value'] = 'Value';
aLangKeys['en']['show_NextStep'] = 'Next Step';
aLangKeys['en']['show_Timetable'] = 'Timeframe';
aLangKeys['en']['show_Ok'] = 'Ok';

aLangKeys['en']['about_info'] = 'english_about_info';

aLangKeys['en']['lost_info'] = 'Enter your email to reset your password. Follow the instructions in the mail.';

aLangKeys['en']['NewRec'] = 'A new recommendation has been created';


function getText(key) {
    if (aLangKeys['en'][key] != null)
        return aLangKeys['en'][key];
    else
        return key;
}

$(document).ready(function() {

        // translate all translatable elements
        $('.tr').each(function(i){
		if($(this).is("input"))
		{
			$(this).val(aLangKeys['en'][ $(this).attr('key') ]);
		}
		else
		{
			$(this).prepend(aLangKeys['en'][ $(this).attr('key') ]);
		}
        });

});
